package cn.ihelloworld.bean;

import java.util.List;

public class PageResult<T>
{
  private List<T> rows;
  private int currentPage;
  private int pageSize;
  private int rowCount;
  private int pageCount;
  public PageResult(){
    this.pageSize=10;
    this.currentPage=1;
  }
  public PageResult(int pageSize){
    this.pageSize=pageSize;
  }
  public List<T> getRows()
  {
    return rows;
  }
  public void setRows(List<T> rows)
  {
    this.rows = rows;
  }
  public int getPageSize()
  {
    return pageSize;
  }
  public void setPageSize(int pageSize)
  {
    this.pageSize = pageSize;
  }
  public int getRowCount()
  {
    return rowCount;
  }
  public void setRowCount(int rowCount)
  {
    this.rowCount = rowCount;
  }
  public int getPageCount()
  {
    return pageCount;
  }
  public void setPageCount(int pageCount)
  {
    this.pageCount = pageCount;
  }
  public void setCurrentPage(int currentPage)
  {
    this.currentPage = currentPage;
  }
  public int getCurrentPage()
  {
    return currentPage;
  }
}
